const {
  Sequelize,
  Model
} = require('sequelize')
const {
  sequelize
} = require('../config/db');

// 定义模型
class disease_diseaseType extends Model {

}

disease_diseaseType.init({
  id: {
    type: Sequelize.INTEGER,
    primaryKey: true,
    autoIncrement: true
  },
  diseaseTypeId: {
    type: Sequelize.STRING(16),
    allowNull: false,
    comment: '疾病分类id'
  },
  diseaseId: {
    type: Sequelize.STRING(16),
    allowNull: false,
    comment: '疾病id'
  },
}, {
  sequelize,
  modelName: 'disease_diseaseType',
  tableName: 'disease_diseaseType'
})

// disease_diseaseType.sync({
//   force: true
// })

module.exports = disease_diseaseType